<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="menuListCss" jsFile="menuListJs" current="模块信息">
    <div class="page-content">
        <!-- BEGIN PAGE HEAD-->
        <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
                <div class="page-title">
                    <h1>新增按钮
                        <small>新增按钮页面</small>
                    </h1>

                </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD -->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">新增按钮信息</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="portlet light bordered">
            <div class="portlet-body form">
                <form class="createform" role="form" action="javascript:;" method="POST" id="addButForm">
                    <input type="hidden" id="function_id" name="function_id" value="${functionVO.id}" />
                    <input type="hidden" id="company_id" name="company_id" value="${functionVO.company_id}" />
                    <div class="form-body">
                        <div class="alert alert-danger display-hide">
                            <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
                        </div>
                        <div class="alert alert-success display-hide">
                            <button class="close" data-close="alert"></button> 表单验证通过! 
                        </div>
                        <div class="row">
                            <div class="col-md-6">
		                        <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">系统</label>
				                        <div class="input-group-content">
				                            <select name="system_code" class="form-control input-inline" readonly>
				                               <option value="USER_CENTER" <#if functionVO.system_code=="USER_CENTER">selected</#if> >后台管理</option>
                                               <option value="COMPANY" <#if functionVO.system_code=="COMPANY">selected</#if> >企业应用</option>
											</select>
				                        </div>
				                    </div>
				                </div>
				            </div>
				            <div class="col-md-6">
				                <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">模块编码</label>
				                        <div class="input-group-content">
				                            <input type="text" id="function_code" name="function_code" class="form-control" 
				                            placeholder="★请输入模块编码（全功能唯一）" value="${functionVO.function_code}" readonly  />
				                        </div>
				                    </div>
				                </div>
				            </div>
				        </div>
				        <div class="row">
                            <div class="col-md-6">
		                        <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">模块名称</label>
				                        <div class="input-group-content">
				                            <input type="text" id="function_name" name="function_name" 
				                            class="form-control" placeholder="★请输入模块名称（全模块唯一）" value="${functionVO.function_name}" readonly/>
				                        </div>
				                    </div>
				                </div>
				            </div>
				            <div class="col-md-6">
				                <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">按钮编码</label>
				                        <div class="input-group-content">
				                            <input type="text" id="button_code" name="button_code" 
				                            class="form-control" placeholder="★请输入按钮编码（全按钮唯一）" value="" />
				                        </div>
				                    </div>
				                </div>
				            </div>
				        </div>
				        <div class="row">
                            <div class="col-md-6">
		                        <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">按钮名称</label>
				                        <div class="input-group-content">
				                            <input type="text" id="button_name" name="button_name" 
				                            class="form-control" placeholder="★请输入按钮名称（全按钮唯一）" value="" />
				                        </div>
				                    </div>
				                </div>
				            </div>
				            <div class="col-md-6">
				                <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">权限过滤地址</label>
				                        <div class="input-group-content">
				                            <input type="text" id="button_address" name="button_address" < class="form-control" 
				                            placeholder="★请输入权限地址url, 例: /userManage/user" value="" />
				                        </div>
				                    </div>
				                </div>
				            </div>
				        </div>
				        
				        <div class="row">
				        	<div class="col-md-6">
				                <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">状态</label>
				                        <div class="input-group-content">
				                            <select name="data_status" class="form-control input-inline">
				                               <option value="DATA_AVAILABLE"  >启用</option>
                                               <option value="DATA_DISABLE"  >停用</option>
											</select>
				                        </div>
				                    </div>
				                </div>
				            </div>
				            <div class="col-md-6">
				                <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">按钮类型</label>
				                        <div class="input-group-content">
				                             <select name="request_type" class="form-control input-inline">
				                               <option value="AXAJ_URL" select  >ajax请求</option>
				                               <option value="MODEL_AND_VIEW_URL"  >界面跳转</option>
											</select>
				                        </div>
				                    </div>
				                </div>
				            </div>
				        </div>
				        <div class="row">
				        	<div class="col-md-6">
				                <div class="form-group">
				                    <div class="input-group">
				                        <label class="input-group-addon">功能描述</label>
				                        <div class="input-group-content">
				                            <input type="text" id="remark" name="remark" class="form-control" placeholder="备注" 
				                            value="" />
				                        </div>
				                    </div>
				                </div>
				            </div>
				        </div>
		                <div class="form-actions top">
		                    <div class="row col-md-4 col-xs-4 col-md-offset-5">
		                        <button type="submit" id="btnSubmit" class="btn green">保存</button>
                                <a href="${context}/function_button/button_index_view/${functionVO.id}" class="btn default">返回</a>
		                    </div>
		                </div>
		            </div>
                </form>
            </div>
        </div>
        <!-- END PAGE BASE CONTENT -->
    </div>
</@page.mainTemplate>